ExamPlay Light Logo
로그인

Computer Science for IGCSE & O level - Programming (Section 16 - No. 11)

In the Totaling example, what is the effect of `TotalWeight = TotalWeight + Weight;`?
Subtracts 'Weight' from 'TotalWeight'.
Assigns 'Weight' to 'TotalWeight'.
Adds 'Weight' to 'TotalWeight' and stores the result in 'TotalWeight'.
Multiplies 'Weight' and 'TotalWeight'.

설명

This adds the current weight value to the ongoing sum.

댓글 (0)

댓글을 달려면 로그인하세요
광고
BrainBehindX Inc Logo
©2026; 에 의해 구동 BrainBehindX Inc